import axios from "../axios"

/**
 * 抢优惠券-列表
 */
export const pickupCouponList=(params)=>{
    return axios({
        url:"/api/pickcoupon/list",
        method:'get',
        params
    })
}

/**
 * 抢优惠券-详情
 */
export const pickupCouponDetail=(params)=>{
    return axios({
        url:"/api/pickcoupon/detail",
        method:'post',
        params
    })
}

/**
 * 抢优惠券-抢购
 */
export const pickupCouponCreate=(data)=>{
    return axios({
        url:"/api/pickcoupon/create",
        method:'post',
        data
    })
}

